package com.hq.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName UserController
 * @Description 用户中心
 * @Author huangzl
 * @Date 2018/10/17 19:12
 * @Version 1.0
 **/
@Controller
@RequestMapping("/auth")
public class UserController {

    @RequestMapping("/index")
    public String index(HttpServletRequest request) {
        request.setAttribute("Account", request.getSession().getAttribute("Account"));
        return "user/index";
    }

    @RequestMapping("/order")
    public String order(HttpServletRequest request) {
        request.setAttribute("Account", request.getSession().getAttribute("Account"));
        return "user/order";
    }


}